package com.cgbg.lisenter;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "fanout.queue.A")
public class FanoutLisenterA {

    @RabbitHandler
    public void receive(String message) {
        System.out.println("A:" + message);
    }
}
